﻿@{
    ViewBag.Title = "系统通知";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@using SpeadFrm.MvcPager
@model PagedList<JStore.Web.Controllers.SysMsgs.ViewModels.SysMsgModel>
<link href="../../Scripts/colorbox/colorbox.css" rel="stylesheet" type="text/css" />
<script src="../../Scripts/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="../../Scripts/colorbox/jquery.colorbox-min.js" type="text/javascript"></script>
<script src="../../Scripts/AdminCommon.js" type="text/javascript"></script>
<script type="text/javascript">
    $(function () {
        $(".box").colorbox({
            iframe: true,
            width: 700,
            height: 500
        });
    })
</script>
<div class="right_box_card">
    <ul>
        <li class="right_box_card2"><a href="@Url.Action("List", "News")">系统公告</a></li>
        <li class="right_box_card1"><a href="@Url.Action("Index", "SysMsgs")">系统通知(<label
            class="red">@ViewData["msgCount"]条</label>)</a></li>
    </ul>
</div>
<table class="right_box_tab" style="margin-top: 10px;" width="100%" border="0" cellspacing="0"
    cellpadding="0">
    <tr height="30" class="tab_title">
        <td width="70%">
            标题
        </td>
        <td>
            通知时间
        </td>
        <td>
        </td>
    </tr>
    @foreach (var item in Model)
    {
        <tr height="35" class="tab_td1" style="line-height: 26px;" onmouseover="this.className = 'tab_td2' "
            onmouseout=" this.className = 'tab_td1'">
            <td style="text-align: left; text-indent: 30px;">
                @Html.ActionLink(item.Title, "Detail", "SysMsgs", new { item.Id }, new { @class = "box" })
                @if (!item.IsRead)
                {
                    <label class="red">
                        未读！</label>
                }
            </td>
            <td>
                @item.CreateDate
            </td>
        </tr>
    }
</table>
<div style="padding: 10px;">
    @Html.Pager(Model)
</div>
